<?php

namespace hiduoke\exception;


use think\Exception;

class MessageException extends Exception
{
    public function __construct($message = "", $type = 'info', $url = '', $json_code = -1, array $config = [])
    {
        $this->config = $config;
        $this->type = $type;
        $this->url = $url;
        $this->json_code = $json_code;
        parent::__construct($message, 200);
    }

    public function getJsonCode()
    {
        return $this->json_code;
    }

    public function getConfig()
    {
        return $this->config;
    }

    public function getType()
    {
        return $this->type;
    }

    public function getUrl()
    {
        return $this->url;
    }
}
